package com.sitech.portal.server.service.impl;

import java.util.List;
import java.util.Map;

import com.sitech.portal.server.dao.IWorkPlanDao;
import com.sitech.portal.server.service.IWorkPlanService;

public class WorkPlanServiceImpl implements IWorkPlanService {

	private IWorkPlanDao workPlanDao;
	
	public IWorkPlanDao getWorkPlanDao() {
		return workPlanDao;
	}

	public void setWorkPlanDao(IWorkPlanDao workPlanDao) {
		this.workPlanDao = workPlanDao;
	}

	@Override
	public void delWorkPlan(String wpid) {
		// TODO Auto-generated method stub
		workPlanDao.delWorkPlan(wpid);
	}

	@Override
	public List findAllWorkPlan(String loginId, String date) {
		// TODO Auto-generated method stub
		return workPlanDao.findAllWorkPlan(loginId, date);
	}

	@Override
	public Map findWorkPlanById(String TASK_ID) {
		// TODO Auto-generated method stub
		return workPlanDao.findWorkPlanById(TASK_ID);
	}

	@Override
	public List findWorkPlanByParentId(String pid) {
		// TODO Auto-generated method stub
		return workPlanDao.findWorkPlanByParentId(pid);
	}

	@Override
	public Map insertWorkPlan(Map<String, String> wp) {
		// TODO Auto-generated method stub
		return workPlanDao.insertWorkPlan(wp);
	}

	@Override
	public void updateWorkPlan(Map<String, String> wp) {
		// TODO Auto-generated method stub
		workPlanDao.updateWorkPlan(wp);
	}

}
